]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Move caps-lock warning to entry widget stylesheet
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 23 Jan 2020 22:26:45 +0000 (23:26 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 30 Jan 2020 14:35:26 +0000 (14:35 +0000)
The caps-lock warning is more related to entries than dialogs and is
also used in gdm, which is not realated to dialogs at all. Rename the
css class to caps-lock-warning-label and move it to the entry
stylesheet.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/952

data/theme/gnome-shell-sass/widgets/_dialogs.scss
data/theme/gnome-shell-sass/widgets/_entries.scss
js/ui/shellEntry.js

index bd49e7393f615d15bbab61bd5847499b30e92ad7..f1960dba7fdc07efb4e34ba1547fe1ca274b2686 100644 (file)
   padding: 8px;
 }
 
-.prompt-dialog-caps-lock-warning {
-  @extend .prompt-dialog-error-label;
-  padding-left: 6.2em;
-}
-
 
 /* Polkit Dialog */
 
index 0a43e86f37db2e1288343c331cc04468dd376754..70875b0854fd35a623333639bddbe109638b3763 100644 (file)
@@ -25,3 +25,9 @@ StEntry {
     color: transparentize($fg_color, 0.3);
   }
 }
+
+.caps-lock-warning-label {
+  padding-left: 6.2em;
+  @include fontsize($base_font_size - 1);
+  color: $warning_color;
+}
index 77e3a185ba497a4b62c492039921c60f1b3703dd..f8f2f12fd1c6241c6ce92cbcc01175df061e9684 100644 (file)
@@ -156,7 +156,7 @@ function addContextMenu(entry, params) {
 var CapsLockWarning = GObject.registerClass(
 class CapsLockWarning extends St.Label {
     _init(params) {
-        let defaultParams = { style_class: 'prompt-dialog-error-label' };
+        let defaultParams = { style_class: 'caps-lock-warning-label' };
         super._init(Object.assign(defaultParams, params));
 
         this.text = _('Caps lock is on.');